namespace CrossThreadUpdateUI
{
    using System;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    public static class ATimer
    {
        public static void AsyncUpdate(this Timer ctrl, TimerAttrib attrib, object value)
        {
            if (attrib == TimerAttrib.Enabled)
            {
                ctrl.Enabled = (bool) value;
            }
        }
    }
}

